import Mock from "mockjs";
// 定义数据类型
const { data } = Mock.mock({
  // 3条数据
  "data|7": [
    {
      "id|+1": 1001,
      // 班级
      "grade|2201-2205": 2201,
      // 时间
      "times|+1": "9:00-12:00",
      //教室
      "classroom|201-205": 201,
      //人数
      "people|30-100": 30,
      //内容
      "content|1-5": "★",
      "week|+1": 0,
    },
  ],
});

Mock.mock("/api/lab/list", "post", () => {
  return {
    status: 0,
    result: data,
  };
});

export default Mock;
